|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectagents.anac.y2011.TheNegotiator.TimeManager
public class TimeManager
The TimeManager class is used for time-related functions.
| Constructor Summary | |
|---|---|
TimeManager(Timeline timeline,
double discount,
BidsCollection bidsCollection)
Creates a TimeManager-object which stores the timeline of the negotiation. |
|
| Method Summary | |
|---|---|
void |
calculateEndPhases()
Calculates the time which should be spend on each phase based on the distribution of the utilities of the bids. |
void |
calculatePropArray()
Calculate how many possible bids are within a certain threshold interval. |
int |
getMovesLeft()
|
int |
getPhase(double time)
Returns the current phase of the negotiation. |
double |
getThreshold(double time)
Returns the time dependent threshold which specifies how good a bid of an opponent should be to be accepted. |
double |
getTime()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeManager(Timeline timeline,
double discount,
BidsCollection bidsCollection)
timeline - of the negotiation| Method Detail |
|---|
public int getPhase(double time)
public double getThreshold(double time)
public int getMovesLeft()
public void calculatePropArray()
public void calculateEndPhases()
public double getTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||